﻿using MuXue.Zyiz.Template.Domain.Model.Request;
using System;
using System.Collections.Generic;
using System.Text;

/// <summary>
/// 【Demo可删除】
/// </summary>
namespace MuXue.Zyiz.Template.Domain.Model.response
{
    /// <summary>
    /// 【Demo可删除】合同详情
    /// </summary>
    public class OrderDetailResp
    {

        #region 用户基本信息
        public string app_user_id { set; get; }
        /// <summary>
        /// zyiz.net系统的学生id
        /// </summary>
        public int? zyiz_student_id { set; get; }

        /// <summary>
        /// 学生姓名
        /// </summary>
        public string app_student_name { set; get; }

        /// <summary>
        /// 城市名称
        /// </summary>
        public string city_name { set; get; }

        /// <summary>
        /// 校区编码
        /// </summary>
        public string school_code { set; get; }

        /// <summary>
        /// 校区名称
        /// </summary>
        public string school_name { set; get; }

        /// <summary>
        /// 年级
        /// </summary>
        public string student_grade { set; get; }
        /// <summary>
        /// 用户的电话
        /// </summary>
        public string user_tel { set; get; }


        #endregion 

        /// <summary>
        /// 合同的课程信息
        /// </summary>
        public OrderCourseResp course { get; set; } = new OrderCourseResp();

        /// <summary>
        /// 订单编号
        /// </summary>
        public string order_no { get; set; }
        /// <summary>
        /// 交易流水号（支付通道返回的）
        /// </summary>
        public string trade_serial_no { get; set; }
        /// <summary>
        /// 订单状态（0确认订单,1支付成功的订单,2取消订单,3申请退费，4退费成功）
        /// </summary>
        public int order_status { get; set; }
         
        /// <summary>
        /// 支付通道
        /// </summary>
        public string payment_channel { get; set; }

        /// <summary>
        /// 应付商品总金额
        /// </summary>
        public decimal payable_amount { get; set; }

        /// <summary>
        /// 实付商品总金额
        /// </summary>
        public decimal  real_amount { get; set; }
        /// <summary>
        /// 支付状态（0未支付1已支付）
        /// </summary>
        public int payment_status { get; set; }
        /// <summary>
        /// 创建日期 默认为当前时间
        /// </summary>
        public DateTime create_time { get; set; }
        /// <summary>
        /// 实际支付时间
        /// </summary>
        public DateTime? payment_time { get; set; }
        /// <summary>
        /// 完成时间
        /// </summary>
        public DateTime? complete_time { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? update_time { get; set; }
        /// <summary>
        /// 更新记录
        /// </summary>
        public string update_remark { get; set; }
        /// <summary>
        /// 取消订单的时间
        /// </summary>
        public DateTime? canel_time { get; set; }
        /// <summary>
        /// 取消原因（主动取消，超时系统自动取消）
        /// </summary>
        public string canel_case { get; set; }
        /// <summary>
        /// zyiz里的合同id
        /// </summary>
        public int contract_id { get; set; } = 0;

        /// <summary>
        /// 已排课时
        /// </summary>
        public int hasPaiKeShi { get; set; } = 0;
    }
}
